.common-page {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: stretch;
    padding: 30px;
    width: calc(100% - 60px);
    height: calc(100% - 60px);
}

.common-page__head {
    flex: 0 0 auto;
    margin-bottom: 30px;

    & > .route {
        margin-bottom: 10px;
    }

    & > .title {
        display: flex;
        flex-flow: row nowrap;
        justify-content: flex-start;
        align-items: flex-start;
        min-height: 32px;
        color: #333;
        font-size: 24px;
        line-height: 32px;

        & > .text {
            flex: 0 1 auto;
            margin-right: 1em;
            min-height: 32px;
        }

        & > .flag {
            flex: 0 0 auto;
            margin: 3px 8px 3px 0;
            border: solid 1px #1677ff;
            border-radius: 4px;
            padding: 4px 8px;
            height: 16px;
            color: #1677ff;
            font-size: 16px;
            line-height: 1;
        }
    }
}

.common-page__body {
    flex: 1 1 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.common-page__foot {
    flex: 0 0 auto;
    margin-top: 30px;
}

.common-list {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: stretch;
}

.common-list__head {
    flex: 0 0 auto;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;

    & > .filter {
        flex: 0 0 auto;
        margin: 0 20px 20px 0;
        width: auto;
    }
}

.common-list__nect {
    flex: 0 0 auto;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;

    & > .el-tag,
    & > .el-button,
    & > .el-dropdown {
        flex: 0 0 auto;
        margin: 0 20px 20px 0;
    }
}

.common-list__body {
    flex: 1 1 0;
    border: solid 1px #eee;
    overflow: auto;

    & > .el-table {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;

        &:before {
            display: none;
        }

        th {
            color: #333;
            font-weight: normal;
            background-color: #f6f6f6;
            user-select: text;
        }

        .cell {
            text-overflow: initial;
        }
    }
}

.common-list__foot {
    flex: 0 0 auto;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    margin-top: 20px;

    & > .el-pagination {
        flex: 1 1 auto;
        text-align: right;
    }
}

.common-list__foot--slot {
    & > .el-pagination {
        text-align: left;
    }
}

.common-tree {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: stretch;
}

.common-tree__head {
    flex: 0 0 auto;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;

    & > .filter {
        flex: 0 0 auto;
        margin: 0 20px 20px 0;
        width: auto;
    }
}

.common-tree__nect {
    flex: 0 0 auto;

    & > .el-button,
    & > .el-tag,
    & > .el-dropdown {
        margin: 0 20px 20px 0;
    }
}

.common-tree__body {
    flex: 2 1 0;
    border: solid 1px #eee;
    overflow: auto;

    & > .item {
        display: flex;
        flex-flow: row nowrap;
        justify-content: flex-start;
        align-items: center;
        border-bottom: solid 1px #eee;
        padding: 5px;

        & > .name {
            flex: 2 1 0;
            display: flex;
            flex-flow: row nowrap;
            justify-content: flex-start;
            align-items: center;
            margin-right: 20px;

            & > .expand {
                flex: 0 0 auto;
                padding: 4px;
                width: 20px;
                height: 20px;
                color: #aaa;
                font-size: 16px;
                line-height: 20px;
                text-align: center;
                user-select: none;
                cursor: pointer;

                &:before {
                    content: "+";
                }
            }

            & > .selector {
                flex: 0 0 auto;
                border: solid 5px transparent;
                width: 18px;
                height: 18px;
                background: url() no-repeat center center / contain;
                user-select: none;
                cursor: pointer;
            }

            & > .text {
                flex: 0 1 auto;
                padding: 4px;
                min-height: 20px;
                color: #333;
                font-size: 14px;
                line-height: 20px;
                cursor: pointer;
            }
        }

        & > .space {
            flex: 1 1 0;
            margin-right: 20px;
            min-height: 28px;
        }

        &:hover {
            background-color: #f6f6f6;
        }

        &.expanded {
            & > .name {
                & > .expand {
                    &:before {
                        content: "-";
                    }
                }
            }
        }

        &.selected {
            & > .name {
                & > .selector {
                    background-image: url();
                }
            }
        }
    }

    & > .item--lv0 {
        position: sticky;
        top: 0;
        left: 0;
        z-index: 1;
        background-color: #f6f6f6;

        & > .name,
        & > .space {
            padding: 4px;
            height: 20px;
            min-height: 0;
            color: #333;
            font-size: 14px;
            line-height: 20px;
            cursor: pointer;
        }
    }

    & > .item--lv1 {
        & > .name {
            & > .expand {
                margin-left: 0px;
            }
        }
    }

    & > .item--lv2 {
        & > .name {
            & > .expand {
                margin-left: 28px;
            }
        }
    }

    & > .item--lv3 {
        & > .name {
            & > .expand {
                margin-left: 56px;
            }
        }
    }

    & > .item--lv4 {
        & > .name {
            & > .expand {
                margin-left: 84px;
            }
        }
    }

    & > .item--lv5 {
        & > .name {
            & > .expand {
                margin-left: 112px;
            }
        }
    }
}

.common-tree__foot {
    flex: 0 0 auto;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.common-form {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;

    & > .rows {
        display: flex;
        flex-flow: row wrap;
        justify-content: flex-start;
        align-items: flex-start;
        align-content: flex-start;
        margin: 0 15px 15px 0;
        padding: 0 60px 0 0;

        & > .row {
            flex: 0 0 auto;
            display: flex;
            flex-flow: row nowrap;
            justify-content: flex-start;
            align-items: flex-start;
            margin: 0 30px 15px 0;
            width: calc(33.33% - 30px);

            & > .name {
                flex: 0 0 auto;
                margin-right: 14px;
                width: 6em;
                height: 20px;
                color: #999;
                font-size: 14px;
                line-height: 20px;
            }

            & > .value {
                flex: 1 1 0;
                color: #333;
                font-size: 14px;
                line-height: 20px;

                & > .text {
                    display: inline-block;
                    margin-right: 1em;
                    min-height: 20px;
                    vertical-align: top;
                }

                & > .button {
                    display: inline-block;
                    margin-right: 1em;
                    padding: 3px;
                    height: 14px;
                    color: #1677ff;
                    line-height: 1;
                    text-decoration: none;
                    vertical-align: top;
                    user-select: none;
                    cursor: pointer;
                }

                & > .button--add {
                    padding-left: 22px;
                    background: url() no-repeat 3px 2px/16px 16px;
                }

                & > .button--edit {
                    padding-left: 22px;
                    background: url() no-repeat 3px 2px/16px 16px;
                }

                & > .button--delete {
                    padding-left: 22px;
                    background: url() no-repeat 3px 2px/16px 16px;
                }

                & > .el-table {
                    th {
                        color: #333;
                        font-weight: normal;
                        background-color: #f6f6f6;
                        user-select: text;
                    }
                }
            }
        }

        & > .row--2x {
            width: calc(66.66% - 30px);
        }

        & > .row--3x {
            width: calc(100% - 30px);
        }

        & > .row--head {
            width: calc(100% - 30px);

            & > .name {
                margin-right: 16px;
                color: #333;
                font-size: 16px;
                font-weight: bold;
            }

            & > .value {
                height: 20px;
                color: #aaa;
            }
        }

        & > .row--picture {
            display: block;
            position: absolute;
            top: 0;
            right: 0;
            margin: 0;
            width: auto;

            & > .name {
                display: none;
            }

            & > .value {
                display: block;
                border-radius: 30px;
                width: 60px;
                height: 60px;
                object-fit: cover;
                cursor: pointer;
            }
        }

        & > .row--stat {
            display: block;
            width: auto;

            & > .name {
                margin-right: 0;
                width: auto;
                height: 40px;
                color: #111;
                font-size: 32px;
                line-height: 40px;
                text-align: center;
            }

            & > .value {
                margin-top: 10px;
                height: 20px;
                color: #333;
                font-size: 14px;
                line-height: 20px;
                text-align: center;
            }
        }
    }
}